/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.core.types.dao.impl;

import com.farmcode.api.types.dao.ColumnTypeDAO;
import com.farmcode.api.types.model.ColumnType;
import com.farmcode.base.dao.BaseDAOImpl;
import com.farmcode.base.dao.DAOException;
import javax.ejb.Stateless;

/**
 *
 * @author oiprado
 */
@Stateless(name="ejb/ColumnTypeDAO", mappedName="ejb/ColumnTypeDAO")
public class ColumnTypeDAOImpl extends BaseDAOImpl<ColumnType> implements ColumnTypeDAO {

    public ColumnType findByPrimaryKey(Object id) throws DAOException {
        parameters.put("id", id);
        return find().get(0);
    }
}
